package cn.luyou.admin.service;

import cn.luyou.admin.entity.Question;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface QuestionService extends IService<Question> {
    
    IPage<Question> getQuestions(Integer pageNum, Integer pageSize, String keyword, String subject, String type, String difficulty);
    
    void importQuestions(MultipartFile file, Long userId);
    
    byte[] exportQuestions(List<Long> ids) throws IOException;
    
    void removeDuplicates();
    
    Question addQuestion(Question question);
    
    void updateQuestion(Question question);
    
    void deleteQuestion(Long id);
} 